package lesson02;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;

public class Demo_207 {



    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("d:/temp/world.txt");
        PrintWriter printWriter = new PrintWriter(fileOutputStream);

        printWriter.write("abc\n");
        printWriter.write("你好\n");
        printWriter.write("hello\n");
        printWriter.close();
        fileOutputStream.close();
    }


}
